﻿using System;
using System.Windows.Data;

namespace TravisLight.View.Converter
{
    public class StatusConverter : IValueConverter
    {
        public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return String.Format("Images/{0}.png", (string)value);
        }

        public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            // noop
            return null;
        }
    }
}
